package cas.ihep.util;

public class MutableInteger {

    private int value;
    public MutableInteger(){
        value=0;
    }

    public int incrementAndGet(){
        return ++value;
    }

    public int getAndIncrement(){
        return value++;
    }

    public void set(int v){
        value=v;
    }

    public int get(){
        return value;
    }
}
